package com.sddfp.log.controller;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/my")
public class TestBankController {

    /**
     *    @GetMapping("/my/bank/test")
     *    public String showPort();
     */

    @Value("${server.port}")
    private String port;

    @GetMapping("/bank/test")
    public String showPort() {
        System.out.println("port:     "+port);
        return "测试结果" + port;
    }
}
